from rest_framework.generics import ListAPIView
from rest_framework.permissions import IsAdminUser
from rest_framework.viewsets import ModelViewSet

from goods.models import Brand
from meiduo_admin.serializers.pinpai import GoodsBrandsSerializer


class GoodsBrandsView(ModelViewSet):
    permission_classes = [IsAdminUser]
    serializer_class = GoodsBrandsSerializer
    queryset = Brand.objects.all()

    # lookup_value_regex = '\d+'
